mod_filter with mod_include problem

mod_filter with mod_include problem

am 21.10.2009 23:13:06 von Daniel Stutzbach

--001636988babf01d7b0476787141
Content-Type: text/plain; charset=UTF-8

I am trying to use mod_filter to setup server-side includes as well as
compression. However, I'm observing rather odd behavior. Apache sends the
"Content-Encoding: gzip" header, but sends the data uncompressed (causing
FireFox to display "Content Encoding Error"). The compression works fine
for pages that don't end in .shtml. Below are the relevant bits of my
configuration files. I'm ussing Apache 2.2.9. Can anyone offer insights or
suggestions? Any help would be greatly appreciated.

AddHandler server-parsed .shtml
FilterDeclare ssi
FilterProvider ssi INCLUDES handler server-parsed
FilterProtocol ssi INCLUDES change=yes
FilterChain @ssi

FilterDeclare deflate
FilterProvider deflate DEFLATE resp=Content-Type
/text.*|application.(x-)?javascript/
FilterProtocol deflate DEFLATE change=yes;bytesranges=no
FilterChain +deflate

--
Daniel Stutzbach, Ph.D.
http://www.barsoom.org/






--001636988babf01d7b0476787141
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I am trying to use mod_filter to setup server-side includes as well as comp=
ression.  However, I'm observing rather odd behavior.  Apache=
sends the "Content-Encoding: gzip" header, but sends the data un=
compressed (causing FireFox to display "Content Encoding Error").=
  The compression works fine for pages that don't end in .shtml.=
  Below are the relevant bits of my configuration files.  I'm=
ussing Apache 2.2.9.  Can anyone offer insights or suggestions? =
Any help would be greatly appreciated.


AddHandler server-parsed .shtml
FilterDeclare ssi
FilterProvider =
ssi INCLUDES handler server-parsed
FilterProtocol ssi INCLUDES change=3D=
yes
FilterChain @ssi

FilterDeclare deflate
FilterProvider defl=
ate DEFLATE resp=3DContent-Type /text.*|application.(x-)?javascript/

FilterProtocol deflate DEFLATE change=3Dyes;bytesranges=3Dno
FilterChain=
+deflate

--

Daniel Stutzbach, Ph.D.



rc=3D"http://a.abcnews.com/images/technology/rss_chicklet.jp g" alt=3D"" tit=
le=3D"Blog" height=3D"16" width=3D"16">

;" src=3D"http://agthorr.livejournal.com/favicon.ico" alt=3D"" title=3D"Liv=
eJournal" height=3D"16" width=3D"16">
=20
0pt none ;" src=3D"http://static.ak.fbcdn.net/favicon.ico?8:132011" alt=3D"=
" title=3D"Facebook" height=3D"16" width=3D"16">
=20
ne ;" src=3D"http://www.linkedin.com/favicon.ico" alt=3D"" title=3D"LinkedI=
n" height=3D"16" width=3D"16">

le=3D"border: 0pt none ;" src=3D"http://cdn-0.nflximg.com/us/icons/nficon.i=
co" alt=3D"" title=3D"NetFlix" height=3D"16" width=3D"16">
=20
ne ;" src=3D"http://twitter.com/favicon.ico" alt=3D"" title=3D"Twitter" hei=
ght=3D"16" width=3D"16">
=20


--001636988babf01d7b0476787141--

Re: mod_filter with mod_include problem

am 22.10.2009 00:37:10 von Nick Kew

Daniel Stutzbach wrote:
> I am trying to use mod_filter to setup server-side includes as well as
> compression.

Have you checked the exact output, and whether this could be
in the family of

https://issues.apache.org/bugzilla/show_bug.cgi?id=17629
https://issues.apache.org/bugzilla/show_bug.cgi?id=43939

--
Nick Kew

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: mod_filter with mod_include problem

am 22.10.2009 01:10:20 von Daniel Stutzbach

--001636c927cf2c18a904767a1585
Content-Type: text/plain; charset=UTF-8

On Wed, Oct 21, 2009 at 5:37 PM, Nick Kew wrote:

> Daniel Stutzbach wrote:
>
>> I am trying to use mod_filter to setup server-side includes as well as
>> compression.
>>
>
> Have you checked the exact output, and whether this could be
> in the family of
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=17629
> https://issues.apache.org/bugzilla/show_bug.cgi?id=43939
>

I checked the exact output using a packet sniffer. The content is the
correct content, but uncompressed, even though apache sends the
"Content-Encoding: gzip" header.

Bug 17629 looks like it may well be related. Unfortunately, that bug has
been open since 2003 (!) and none of the comments suggest a workaround as
far as I can see. :-(

--
Daniel Stutzbach, Ph.D.
http://www.barsoom.org/






--001636c927cf2c18a904767a1585
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 21, 2009 at 5:37 PM, Nick Kew dir=3D"ltr"><nick=
@webthing.com
>
wrote:
yle=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex=
; padding-left: 1ex;">

Daniel Stutzbach wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to use mod_filter to setup server-side includes as well as comp=
ression.




Have you checked the exact output, and whether this could be

in the family of



et=3D"_blank">https://issues.apache.org/bugzilla/show_bug.cg i?id=3D17629 >

et=3D"_blank">https://issues.apache.org/bugzilla/show_bug.cg i?id=3D43939 >

I checked the exact output using a packet sniff=
er.  The content is the correct content, but uncompressed, even though=
apache sends the "Content-Encoding: gzip" header.


Bug 17629 looks like it may well be related.  Unfortunately, that =
bug has been open since 2003 (!) and none of the comments suggest a workaro=
und as far as I can see. :-(
--=



Daniel Stutzbach, Ph.D.



rc=3D"http://a.abcnews.com/images/technology/rss_chicklet.jp g" alt=3D"" tit=
le=3D"Blog" height=3D"16" width=3D"16">

;" src=3D"http://agthorr.livejournal.com/favicon.ico" alt=3D"" title=3D"Liv=
eJournal" height=3D"16" width=3D"16">
=20
0pt none ;" src=3D"http://static.ak.fbcdn.net/favicon.ico?8:132011" alt=3D"=
" title=3D"Facebook" height=3D"16" width=3D"16">
=20
ne ;" src=3D"http://www.linkedin.com/favicon.ico" alt=3D"" title=3D"LinkedI=
n" height=3D"16" width=3D"16">

le=3D"border: 0pt none ;" src=3D"http://cdn-0.nflximg.com/us/icons/nficon.i=
co" alt=3D"" title=3D"NetFlix" height=3D"16" width=3D"16">
=20
ne ;" src=3D"http://twitter.com/favicon.ico" alt=3D"" title=3D"Twitter" hei=
ght=3D"16" width=3D"16">
=20


--001636c927cf2c18a904767a1585--